import request from '@/utils/request'

/**
 * 获取日志信息列表
 */

export function getIChannelList(data) {
  return request({
    url: '/Azure/GetIChannelList',
    method: 'post',
    data
  })
}

// export function getIChannelList(mediaservicename) {
//   return request({
//     url: '/Azure/GetIChannelByServiceName?mediaservicename='+ mediaservicename,
//     method: 'get'
//   })
// }
export function changeChannelStatus(sname,name,state) {
  return request({
    url: '/Azure/changeChannelStatus?sname='+sname+'&name='+name+'&state=' + state,
    method: 'get'
  })
}
export function updateAMS(data) {
  return request({
    url: `/Azure/UpdateAMS`,
    method: 'post',
    data
  })
}
export function addAMS(data) {
  return request({
    url: `/Azure/AddAMS`,
    method: 'post',
    data
  })
}
export function deleteAMS(sname,name) {
  return request({
    url: '/Azure/CleanupChannel?sname='+sname+'&channelname=' + name,
    method: 'get'
  })
}





